]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
grabHelper: Remove support for untracked grabs
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 15 Sep 2012 17:14:52 +0000 (19:14 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 18 Sep 2012 16:45:41 +0000 (18:45 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=682243

js/ui/grabHelper.js

index 9249828c695c498c272d71daef2f9e490434e43c..0387b80e790c8742dec388c8dbe550e738535fce 100644 (file)
@@ -85,11 +85,7 @@ const GrabHelper = new Lang.Class({
     },
 
     get currentGrab() {
-        let idx = this._grabStack.length - 1;
-        while (idx >= 0 && this._grabStack[idx].untracked)
-            idx--;
-
-        return this._grabStack[idx] || {};
+        return this._grabStack[this._grabStack.length - 1] || {};
     },
 
     _findStackIndex: function(actor) {
@@ -138,14 +134,9 @@ const GrabHelper = new Lang.Class({
     // input mode to %Shell.StageInputMode.FOCUSED, and ungrab() will
     // revert it back, and re-focus the previously-focused window (if
     // another window hasn't been explicitly focused before then).
-    //
-    // If @params contains { untracked: true }, then it will be skipped
-    // when the grab helper ungrabs for you, or when calculating
-    // currentGrab.
     grab: function(params) {
         params = Params.parse(params, { actor: null,
                                         modal: false,
-                                        untracked: false,
                                         grabFocus: false,
                                         onUngrab: null });